Skip to content

Conversation

@alexander-schranz
Copy link
Contributor

@alexander-schranz alexander-schranz commented Jul 18, 2022

I hope this is correct. First time creating stubs.

Based on discussion in phpstan/phpstan#7650

@@ -0,0 +1,41 @@
<?php

namespace Symfony\Component\OptionsResolver;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be registered in stubFiles in extension.neon.

Also since you're making Options class generic, you need to add it to parameters.featureToggles.skipCheckGenericClasses, similarly to here: https://github.com/phpstan/phpstan-src/blob/74228e6f930c9a0e6ca9461557a6d40b92cf4e91/conf/config.neon#L23-L33 (this list will be purged with the next major version).

@ondrejmirtes
Copy link
Member

The failures are my bad, with strict-rules these problems are reported: https://phpstan.org/r/2fb146c6-12dc-4a17-bb28-e13d93e820ea

@ondrejmirtes
Copy link
Member

Reported: phpstan/phpstan#7652

@ondrejmirtes ondrejmirtes force-pushed the feature/options-stub branch from c7138a9 to 6559254 Compare July 19, 2022 09:21
@ondrejmirtes
Copy link
Member

Perfect, thank you!

@ondrejmirtes ondrejmirtes merged commit c90de3d into phpstan:1.2.x Jul 19, 2022
@alexander-schranz alexander-schranz deleted the feature/options-stub branch July 19, 2022 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants